package com.pctx.bibadevicemanager.service;

import com.pctx.bibacommon.result.Result;
import com.pctx.bibadevicemanager.pojo.DeviceUser;
import com.sun.org.apache.regexp.internal.RE;

import java.util.List;

/**
 * Created by chason on 2018/3/1.10:42
 */
public interface DeviceUserService {

    boolean add(DeviceUser du) throws Exception;

    boolean update(DeviceUser du) throws Exception;

    DeviceUser getByUuid(String uuid) throws Exception;

    List<DeviceUser> getByDeviceUuid(String deviceUuid) throws Exception;

    DeviceUser getByDeviceUuidAndUserUuid(String deviceUuid, String userUuid) throws Exception;

    Result shareDevice(String deviceUuid, String userUuid) throws Exception;

    boolean add4Owner(String deviceUuid, String userUuid) throws Exception;

    Result shareList(String deviceUuid) throws Exception;

    Result stopSahre(String deviceUserUuid) throws Exception;
}
